#ifndef I_SIGNAL_H
#define I_SIGNAL_H
#include "IPlugin.h"

class ISignalCallback {
public:
    virtual void handleSignal(int sig) = 0;
    virtual ~ISignalCallback() {}
};

enum SIGNAL_TYPE {
    CTRL_C = 2,
    CTRL_Z = 20,
};

class ISignal : public IPlugin{
public:
    virtual void ingore(SIGNAL_TYPE type) = 0;
    virtual void subscrible(SIGNAL_TYPE type, ISignalCallback *callback) = 0;
};


#endif // I_SIGNAL_H